"""takes URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from platforms.views import *
urlpatterns = [
    # 登入
    path('login/',PlaUserView.as_view()),
    # 注册
    path('zhu/',ZhuView.as_view()),
    # 获取用户信息
    path('user/',UserView.as_view()),
    # 退出登入
    path('logout/',LogoutView.as_view()),
    # 获取所有商家信息
    path('user/all/',UserAllView.as_view()),
    # 获取单个商家信息 修改商家是否冻结
    path('user/info/<int:id>/',UserInfoView.as_view()),
    # 获取所有客户信息
    path('cus/user/',CusUserView.as_view()),
    # 获取单个数据修改和删除
    path('cus/user/info/<int:id>/',CusUserInfoView.as_view()),
    # 获取所有骑手数据
    path('rid/user/',RidUserView.as_view()),
    # 获取单个骑手数据
    path('rid/user/info/<int:id>/',RidUserInfoView.as_view()),
    # 删除商品 畅销 推荐
    path('good/delete/<int:id>/',GoodDeleteView.as_view()),
    # 首页统计
    path('count/',CountView.as_view()),
    # 获取未审核入驻的商家数据
    path('audit/',AuditView.as_view()),


]
